package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 用户扣单配置业务对象 t_user_deduction
 *
 * @author Joker
 * @date 2024-07-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserDeductionBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    private Long userId;

    /**
     * 扣单类型（0-平台、1-一级代理、2-二级代理、3-三级代理）
     */
    private String deductionType;

    /**
     * 订单量
     */
    @NotBlank(message = "订单量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderCount;

    /**
     * 注册量
     */
    private String registerCount;

}
